package com.sucsoft.pdf.service;

import com.sucsoft.pdf.bean.vo.BookVO;
import com.sucsoft.pdf.mapper.BookMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jinly
 * @date 2020/10/23
 */
@Service
public class BookService {

    private final BookMapper bookMapper;

    public BookService(BookMapper bookMapper) {
        this.bookMapper = bookMapper;
    }

    /**
     * 获取全部书籍
     * @return  书籍VO类
     */
    public List<BookVO> listBookVO(){
       return bookMapper.getNewBookList();
    }
}
